package internal

import (
	"week4/configs"
	"week4/internal/di"
)

//服务应用
type app struct {
}

func MyApp() *app {
	return &app{}
}

func (a *app) Run() error {
	// db配置
	dbConfig := &configs.DbConfig{}
	s, err := di.NewService(dbConfig)
	if err != nil {
		return err
	}
	s.UserRegister()
	return nil
}
